package com.gzhu.knowledgeAdmin.service.impl;

import com.gzhu.knowledgeAdmin.common.utils.UserInfoUtils;
import com.gzhu.knowledgeAdmin.dao.ScoreManageMapper;
import com.gzhu.knowledgeAdmin.entity.TPfT;
import com.gzhu.knowledgeAdmin.entity.TPfTXXQ;
import com.gzhu.knowledgeAdmin.service.ScoreManageService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

@Service
public class ScoreManageServiceImpl implements ScoreManageService {

    @Autowired
    private ScoreManageMapper scoreManageMapper;
    @Override
    public List<TPfT> list() {


        String gsid = UserInfoUtils.getCurrentUser().getGsid();
        List<TPfT> list = scoreManageMapper.list(gsid);


        return list;
    }

    @Override
    public List<TPfTXXQ> selectByName( String name) {
        String gsid = UserInfoUtils.getCurrentUser().getGsid();
        List<TPfTXXQ> list=scoreManageMapper.selectByName( name ,gsid);
        return list;
    }
}
